#include <stdio.h>
#include <string.h> 
#include <stdlib.h>
struct Student
{
    char no[16];
    char name[20];
    int age; // 年龄
};
int main(void)
{
    struct Student students[50];
    for (int i = 0; i < 50; i++)
    {
        char tmp[20];
        strcpy(students[i].no,"2220233211320");
        itoa(i + 1, tmp, 10);//把整型数转换为字符串
        strcat(students[i].no,tmp);

        strcpy(students[i].name, "name");
        itoa(i + 1, tmp, 10);
        strcat(students[i].name, tmp);

        students[i].age = (rand() % 5) + 17;
    }
    for (int i = 0; i < 50; i++)
    {
        printf("The stu no is %s\n", students[i].no);
        printf("The stu name is %s\n", students[i].name);
        printf("The stu age is %u\n", students[i].age);
    }
    return 0;
}
